﻿// <copyright file="IPolygon.cs" company="City of Portland, BES-ASM">
// </copyright>
// <summary>IPolygon interface</summary>

namespace BESASM.EMGAATS.BusinessClasses
{
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;

  /// <summary>
  /// Interface for polygon classes
  /// </summary>
  public interface IPolygon : ICloneable
  {
    /// <summary>
    /// Gets or sets the area of this polygon
    /// </summary>
    double Area { get; set; }

    /// <summary>
    /// Returns a value indicating if this polygon has the same coordinates as the given polygon.
    /// </summary>
    /// <param name="polygon">The polygon to compare to this one.</param>
    /// <returns>True if the polygons are the same, otherwise false.</returns>
    bool IsEquivalentTo(IPolygon polygon);
  }
}
